package psnl.bingo.bgtool.framework.dto;

public class UniResult {
    private String message = "success";
    private Object data;

    public static UniResult success() {
        return new UniResult();
    }

    public static UniResult success(Object data) {
        UniResult res = new UniResult();
        res.setData(data);
        return res;
    }

    public static UniResult failure(String msg) {
        UniResult res = new UniResult();
        res.setMessage("error："+msg);
        return res;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}